package com.example.studyplanning.servicesImpl;

import com.example.studyplanning.entity.Like;
import com.example.studyplanning.mapper.LikeMapper;
import com.example.studyplanning.services.LikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LikeServiceImpl implements LikeService {
    @Autowired
    private LikeMapper likeMapper;

    @Override
    public Integer InsertLike(Like like) {
        return likeMapper.InsertLike(like);
    }

    @Override
    public Integer DelLike(Integer userID, Integer tipsID) {
        return likeMapper.DelLike(userID,tipsID);
    }

    @Override
    public List<Like> FindLike(Integer userID, Integer tipsID) {
        return likeMapper.FindLike(userID,tipsID);
    }
}
